﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class ExamForArea
	{
		public ExamForArea()
		{
			m_RID = 0;

		}

		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region SchoolYear
		
		private int? m_SchoolYear;
		
		public int? SchoolYear
		{
			get { return m_SchoolYear; }
			set { m_SchoolYear = value; }
		}
		
		#endregion
		
		#region Term
		
		private int? m_Term;
		
		public int? Term
		{
			get { return m_Term; }
			set { m_Term = value; }
		}
		
		#endregion
		
		#region Part
		
		private int? m_Part;
		
		public int? Part
		{
			get { return m_Part; }
			set { m_Part = value; }
		}
		
		#endregion
		
		#region Grade
		
		private int? m_Grade;
		
		public int? Grade
		{
			get { return m_Grade; }
			set { m_Grade = value; }
		}
		
		#endregion
		
		#region CauseID
		
		private int? m_CauseID;
		
		public int? CauseID
		{
			get { return m_CauseID; }
			set { m_CauseID = value; }
		}
		
		#endregion
		
		#region AreaAvg
		
		private double? m_AreaAvg;
		
		public double? AreaAvg
		{
			get { return m_AreaAvg; }
			set { m_AreaAvg = value; }
		}
		
		#endregion
		
		#region SchoolAvg
		
		private double? m_SchoolAvg;
		
		public double? SchoolAvg
		{
			get { return m_SchoolAvg; }
			set { m_SchoolAvg = value; }
		}
		
		#endregion
		
		#region BValue
		
		private double? m_BValue;
		
		public double? BValue
		{
			get { return m_BValue; }
			set { m_BValue = value; }
		}
		
		#endregion
		
		#region Status
		
		private int? m_Status;
		
		public int? Status
		{
			get { return m_Status; }
			set { m_Status = value; }
		}
		
		#endregion

        #region SchoolMark

        private string schoolmark;

        public string SchoolMark
        {
            get { return schoolmark; }
            set { schoolmark = value; }
        }

        #endregion
		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			ExamForArea castObj = (ExamForArea) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 21;
			hash = hash * 21
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}